extends Control

func show_menu():
	show()
	Global.set_paused(true)
	
func hide_menu(): 
	Global.set_paused(false)
	hide()

func _on_resume_button_pressed():
	hide_menu()

func _on_quit_button_pressed():
	hide_menu()
	Global.back_to_title()
 
func _unhandled_input(event):
	if visible && event.is_action_pressed("ui_cancel"):
		hide_menu()
